// // Add your index.js code in this fil
// var Notify = require('notifyjs');

// var Notify = window.Notify.default;
const {ipcRenderer} = require('electron');

// document.getElementById('my-button').addEventListener('click', function () {
// 	alert('aaaa');

//             function onShowNotification () {
//                 console.log('notification is shown!');
//             }

//             function onCloseNotification () {
//                 console.log('notification is closed!');
//             }

//             function onClickNotification () {
//                 console.log('notification was clicked!');
//             }

//             function onErrorNotification () {
//                 console.error('Error showing notification. You may need to request permission.');
//             }

//             function onPermissionGranted () {
//                 console.log('Permission has been granted by the user');
//                 doNotification();
//             }

//             function onPermissionDenied () {
//                 console.warn('Permission has been denied by the user');
//             }

//             function doNotification () {
//                 var myNotification = new Notify('Yo dawg!', {
//                     body: 'This is an awesome notification',
//                     tag: 'My unique id',
//                     notifyShow: onShowNotification,
//                     notifyClose: onCloseNotification,
//                     notifyClick: onClickNotification,
//                     notifyError: onErrorNotification,
//                     timeout: 4
//                 });

//                 myNotification.show();
//             }

//             if (!Notify.needsPermission) {
//                 doNotification();
//             } else if (Notify.isSupported()) {
//                 Notify.requestPermission(onPermissionGranted, onPermissionDenied);
//             }

//         }, false);



////////////////////////////////////////////////////////////////////////////




// const notifier = require('node-notifier');

document.getElementById('my-button').addEventListener('click', function () {
    // notifier.notify({
    //     'title': 'My notification',
    //     'message': 'Hello, there!'
    // });
//////////////////////////////////////////////////////////////////////
 
// var notifier = new NotificationCenter({
//   withFallback: false, // Use Growl Fallback if <= 10.8 
//   customPath: void 0 // Relative path if you want to use your fork of terminal-notifier 
// });
 
// notifier.notify({
//   'title': '111111',
//   'subtitle': '2222222',
//   'message': '33333333',
//   'sound': false, // Case Sensitive string for location of sound file, or use one of OS X's native sounds (see below) 
//   'icon': 'Terminal Icon', // Absolute Path to Triggering Icon 
//   'contentImage': void 0, // Absolute Path to Attached Image (Content Image) 
//   'open': void 0, // URL to open on Click 
//   'wait': false // Wait for User Action against Notification 
// }, function(error, response) {
//   console.log(response);
// });
////////////////////////////////////////////////////////////////////////


//notifier.notify({
//  title: 'Foo',
//  message: 'Hello World',
  // icon: fs.readFileSync(__dirname + "/coulson.jpg"),
//  wait: false, // Wait for User Action against Notification 
 
  // and other growl options like sticky etc. 
//  sticky: false,
//  label: void 0,
//  priority: void 0
//});

ipcRenderer.send('notifyMainProcess', {
		title : document.getElementById('title').value,
		content : document.getElementById('content').value
	});
});
// String 

 
// Object 
